<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
    font-family: Helvetica, Ubuntu, sans;
    background-color: #303030;
    color: #fff;
}

table.center {
    width: 50%;
    float: left;
    padding-bottom: 20px;
}

td {
    vertical-align: top;
}

td.title {
    color: #ff6;
    font-weight: bold;
}

td.shortcut {
    font-family: Monaco, "Ubuntu Mono", monospace;
    color: #ff6;
    text-align: right;
    font-size: 0.8em;
}

span.title {
    font-size: 1.3em;
    font-weight: bold;
}
	</style>
</head>

<body>
<span class="title">鍵盤快捷鍵</span>
<hr />

<!-- Preparing Commits -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">提交版本</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Return</td>
    <td>:</td>
    <td>提交版本提交準備區域中的變更</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + Return</td>
    <td>:</td>
    <td>Prepare commit message hook</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + S</td>
    <td>:</td>
    <td>將被選取的項目移入版本提交準備區域</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + S</td>
    <td>:</td>
    <!-- TODO -->
    <td>Stage / unstage all files</td>
</tr>
<tr>
    <td class="shortcut">Alt + A</td>
    <td>:</td>
    <td>將已變更的項目移入版本提交準備區域</td>
</tr>
<tr>
    <td class="shortcut">Alt + U</td>
    <td>:</td>
    <td>將尚未追蹤其版本的項目移動到版本提交準備區域</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + U / Alt + Shift + R</td>
    <td>:</td>
    <td>還原尚未移入版本提交準備區域的內容變動</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + U</td>
    <td>:</td>
    <!-- TODO -->
    <td>Launch an external editor to edit the selected lines, or the diff hunk beneath
        the text cursor when nothing is selected, and then revert unstaged changes
        using the edited diff</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Z</td>
    <td>:</td>
    <td>撤銷尚未建立版本提交的內容變動</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + M</td>
    <td>:</td>
    <td>合併分支</td>
</tr>
<tr>
    <td class="shortcut">Alt + M</td>
    <td>:</td>
    <td>修正前一次的版本提交</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + C</td>
    <td>:</td>
    <td>挑取(cherry pick)</td>
</tr>
</table>

<!-- Actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + B</td>
    <td>:</td>
    <td>建立一個新的分支</td>
</tr>
<tr>
    <td class="shortcut">Alt + B</td>
    <td>:</td>
    <td>取出分支內容</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + T</td>
    <td>:</td>
    <td>尋找檔案</td>
</tr>
<tr>
    <td class="shortcut">Alt + G</td>
    <td>:</td>
    <td>搜尋</td>
</tr>
<tr>
    <td class="shortcut">Alt + D</td>
    <td>:</td>
    <td>顯示內容差異</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + E</td>
    <td>:</td>
    <td>匯出修正</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + S</td>
    <td>:</td>
    <td>珍藏</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Enter</td>
    <td>:</td>
    <td>Apply Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>Pop Stash</td>
</tr>
<tr>
<td class="shortcut">Ctrl + Shift + Backspace</td>
    <td>:</td>
    <td>Drop Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>刪除未納入版本追蹤的檔案</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + F</td>
    <td>:</td>
    <td>開啟／關閉路徑過濾器</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + R</td>
    <td>:</td>
    <td>重新整理</td>
</tr>
<tr>
    <td class="shortcut">?</td>
    <td>:</td>
    <td>顯示鍵盤快捷鍵列表</td>
</tr>
</table>

<!-- Editing -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">編輯</td>
</tr>
<tr>
    <td class="shortcut">Enter / Ctrl + E</td>
    <td>:</td>
    <td>啟動文字編輯器</td>
</tr>
<tr>
    <td class="shortcut">空白鍵</td>
    <td>:</td>
    <td>以系統預設的軟體開啟</td>
</tr>
<tr>
    <td class="shortcut">Shift + 空白鍵</td>
    <td>:</td>
    <td>開啟上一層目錄</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Alt + C</td>
    <td>:</td>
    <td>複製修訂版的Commit雜湊值</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + E</td>
    <td>:</td>
    <td>檢視／編輯最近修改過的檔案</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + #</td>
    <td>:</td>
    <td>將焦點移至指定工具</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + #</td>
    <td>:</td>
    <td>顯示或隱藏指定工具<br>
        對提交版本工具來說 # 為 1、對版控庫狀態工具來說 # 為 2、對內容差異工具來說 # 為 3，依此類推</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Space</td>
    <td>:</td>
    <td>Display autocomplete options</td>
</tr>
</table>

<!-- Diff -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">內容差異檢視器</td>
</tr>
<tr>
    <td class="shortcut">S</td>
    <td>:</td>
    <td>將選取的行移入版本提交準備區域，或是當沒有選取任何行時跟
        <strong><em>H</em></strong> 效果相同
    </td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + S</td>
    <td>:</td>
    <td>Launch an external editor to edit the selected lines, or the diff hunk benath the
        text cursor when nothing is selected, and then stage the edited diff</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + D</td>
    <td>:</td>
    <td>使用「git difftool」命令檢視內容差異</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + F</td>
    <td>:</td>
    <td>Search diff for matching text</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + G</td>
    <td>:</td>
    <td>Search diff for the next text match</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + G</td>
    <td>:</td>
    <td>Search diff for the previous text match</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + C</td>
    <td>:</td>
    <td>Copy Diff to clipboard (strips diff +/- prefixes)</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>使用「git difftool --dir-diff」命令檢視目錄內容差異</td>
</tr>
</table>

<!-- Browser actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">瀏覽器工具內可進行的操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + H</td>
    <td>:</td>
    <td>檢視變更紀錄</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>與過去版本比較內容差異</td>
</tr>
</table>

<!-- Tree navigation -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">導覽按鍵</td>
</tr>
<tr>
    <td class="shortcut">H</td>
    <td>:</td>
    <td>向左移動／折疊</td>
</tr>
<tr>
    <td class="shortcut">J / Alt + J</td>
    <td>:</td>
    <td>向下移動</td>
</tr>
<tr>
    <td class="shortcut">K / Alt + K</td>
    <td>:</td>
    <td>向下移動</td>
</tr>
<tr>
    <td class="shortcut">L</td>
    <td>:</td>
    <td>向下移動／展開</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + J</td>
    <td>:</td>
    <td>將焦點移至內容差異編輯器</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + K</td>
    <td>:</td>
    <td>將焦點移至板控庫狀態工具</td>
</tr>
<!-- TODO: Remove the "title" attribute after updating the translation -->
<tr title="Ctrl+L另外在有向無環圖(DAG)檢視中可以將焦點移至修訂號指定規範(revspec)欄位、在搜尋(grep)檢視中可以將焦點移至查詢輸入欄位……">
    <td class="shortcut">Ctrl + L</td>
    <td>:</td>
    <!-- TODO: Focus the Commit summary, Grep query, DAG query, ... -->
    <td>將焦點移至提交變更工具</td>
</tr>
</table>
</body>
